<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    body {
      width: 100vw;
      height: 100vh;
      background: #34495e;
      display: flex;
      justify-content: center;
      align-items:  center;
    }
    main {
      width: 400px;
      height: 200px;
      overflow: hidden;
    }
    section {
      width: 800px;
      height: 200px;
      display: flex;
      transition-duration: 2s;
      transition-timing-function: step-start;
    }
    div {
      width: 400px;
      height: 200px;
      background-color: saddlebrown;
      font-size: 2em;
      line-height: 200px;
      color: #fff;
      text-align: center;
    }
    main:hover section {
      transform: translateX(-400px);
    }
  </style>
</head>
<body>
  <main>
    <section>
      <div></div>
      <div>text</div>
    </section>
  </main>
</body>
</html>